package team.nmsg.ge.system.service;


import java.util.List;
import java.util.Set;

import com.alibaba.fastjson.JSONArray;

import team.nmsg.ge.system.bean.PageObject;
import team.nmsg.ge.system.bean.SysOper;
import team.nmsg.ge.system.bean.SysRole;
import team.nmsg.ge.system.bean.SysUser;

public interface IUserRoleService {

	boolean updExpiredPassword(SysUser user, String oldPassword,
			String newPassword);

	SysUser findUserWithUsernameAndPassword(String uname, String md5Str);

	void updateUserLoginTimeAndNum(SysUser user);

	public PageObject<SysUser> QueryUser(int pageSize , int startIndex , SysUser criteria);
	
	public List<SysRole> findAllRoles();
	
	public SysUser addSysUser( SysUser user);
	
	public boolean deleteUserByID(String[] UserIds);
	
	public SysUser queryUserById(Integer id);

	boolean updUser(SysUser user);

	List<SysOper> findAllOpers();

	Set<SysOper> getAuthByRole(String rid);

	SysRole addSysRole(SysRole role);

	boolean delSysRole(String rid);

	boolean updModifyOperToRole(int roleId, String[] operId, String rname);
	
	public boolean updChangePassword(SysUser nmsUser,String oldPassword,String newPassword);
	
	public void test();
	public void test2();

	JSONArray getAllClientInfo();
	
	public List<SysUser> findUserByRoles(Set<SysRole> roles);
}
